//
//  weibo3AppDelegate.h
//  weibo3
//
//  Created by Tian Wu on 11-4-8.
//  Copyright 2011年 nfsysu. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "RootViewController.h"

@class RootViewController;


@interface weibo3AppDelegate : NSObject <NSApplicationDelegate> {
@private
    NSWindow *window;
    
    RootViewController *mainWindow;
    
    NSStatusItem * statusItem;
        
    
    NSTimeInterval                  autoRefreshInterval;
    NSTimer*                        autoRefreshTimer;
    NSDate*                         lastRefreshDate;
    
    

}

@property (assign) IBOutlet NSWindow *window;
@property (readwrite, retain) NSStatusItem * statusItem;

//- (void) refreshUserStatusWithUID:(int)userID page:(int)page;
- (void) changeStatusItemTo:(BOOL) status;

- (IBAction) hideApplication:(id) sender;
- (IBAction) toNextPage:(id) sender;
- (IBAction) toPrePage:(id) sender;

- (IBAction) scrollDownARow:(id) sender;
- (IBAction) scrollUpARow:(id) sender;
- (IBAction) viewDetail:(id) sender;
@end
